<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <f:view beforePhase="#{gameController.BeforeTradeRestoreView}">
            <h:form>
                <h:panelGrid columns="5">
                    <h:commandButton id="id_6_spades" value="6s" binding="#{gameController.tb_6s}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_6_clubs" value="6c" binding="#{gameController.tb_6c}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_6_diamonds" value="6d" binding="#{gameController.tb_6d}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_6_hearts" value="6h" binding="#{gameController.tb_6h}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_6_bk" value="6b" binding="#{gameController.tb_6b}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>

                    <h:commandButton id="id_7_spades" value="7s" binding="#{gameController.tb_7s}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_7_clubs" value="7c" binding="#{gameController.tb_7c}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_7_diamonds" value="7d" binding="#{gameController.tb_7d}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_7_hearts" value="7h" binding="#{gameController.tb_7h}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_7_bk" value="7b" binding="#{gameController.tb_7b}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>

                    <h:commandButton id="id_8_spades" value="8s" binding="#{gameController.tb_8s}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_8_clubs" value="8c" binding="#{gameController.tb_8c}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_8_diamonds" value="8d" binding="#{gameController.tb_8d}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_8_hearts" value="8h" binding="#{gameController.tb_8h}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_8_bk" value="8b" binding="#{gameController.tb_8b}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>

                    <h:commandButton id="id_9_spades" value="9s" binding="#{gameController.tb_9s}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_9_clubs" value="9c" binding="#{gameController.tb_9c}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_9_diamonds" value="9d" binding="#{gameController.tb_9d}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_9_hearts" value="9h" binding="#{gameController.tb_9h}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_9_bk" value="9b" binding="#{gameController.tb_9b}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>

                    <h:commandButton id="id_10_spades" value="10s" binding="#{gameController.tb_10s}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_10_clubs" value="10c" binding="#{gameController.tb_10c}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_10_diamonds" value="10d" binding="#{gameController.tb_10d}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_10_hearts" value="10h" binding="#{gameController.tb_10h}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_10_bk" value="10b" binding="#{gameController.tb_10b}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                </h:panelGrid>

                <h:panelGrid columns="2">
                    <h:commandButton id="id_pas" value="pas" binding="#{gameController.tb_pas}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                    <h:commandButton id="id_mizer" value="mizer" binding="#{gameController.tb_mizer}">
                        <f:ajax event="click" render="@form" listener="#{gameController.TradeOnClickListener}"/>
                    </h:commandButton>
                </h:panelGrid>
            </h:form>
        </f:view>
    </h:body>
</html>

